package com.term.domain.common;

import com.term.domain.enums.SplitTypeEnums;
import com.term.domain.utils.StitchingSqlTool;

/**
 * Created by chenGang on 2017/1/6.
 */
public class OrConditionSet extends ConditionSet {

    @Override
    public String toString() {

        String res = StitchingSqlTool.joinCollection(conditions, SplitTypeEnums.OR);
        if (res.isEmpty())
            return "";
        else
            return " (" + res + ") ";
    }
}
